﻿export default [
  {
    path: '/verify',
    layout: false,
    component: '@/layouts/UserPageLayout',
    routes: [
      {
        name: '/verify',
        redirect: '/verify/login',
      },
      {
        name: 'login',
        path: '/verify/login',
        component: './Verify/Login',
      },
      {
        name: 'register',
        path: '/verify/register',
        component: './Verify/Register',
      },
      {
        name: 'forget',
        path: '/verify/forget',
        component: './Verify/Forget',
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/',
    flatMenu: true,
    routes: [
      {
        path: '/',
        redirect: '/user-info-management',
      },
      /* USER 信息管理 start */
      {
        access: 'UserInfoManagement',
        path: '/user-info-management',
        name: '信息管理',
        icon: 'UserSwitchOutlined',
        component: '@/pages/UserInfoManagement/index',
      },
      {
        access: 'SystemManagement',
        path: '/system-management',
        name: '系统管理',
        icon: 'SettingOutlined',
        routes: [
          {
            path: '/system-management',
            redirect: '/system-management/user-management',
          },
          {
            access: 'UserManagement',
            path: '/system-management/user-management',
            name: '用户管理',
            component: '@/pages/SystemManagement/UserManagement',
          },
          {
            access: 'RoleManagement',
            path: '/system-management/role-management',
            name: '角色管理',
            component: '@/pages/SystemManagement/RoleManagement',
          },
          {
            access: 'PermissionManagement',
            path: '/system-management/permission-management',
            name: '权限管理',
            component: '@/pages/SystemManagement/PermissionManagement',
          },
        ],
      },
      /* USER 信息管理  end */
      // 文章管理 start
      {
        access: 'ArticleManagement',
        path: '/article-management',
        name: '文章管理',
        icon: 'FileTextOutlined',
        hideChildrenInMenu: true,
        routes: [
          {
            path: '/article-management',
            name: '文章管理',
            component: '@/pages/ArticleManagement/index',
          },
        ],
      },
      // 文章管理 end
      // 品牌管理 start
      {
        access: 'BrandManagement',
        path: '/brand-management',
        name: '品牌管理',
        icon: 'CrownOutlined',
        hideChildrenInMenu: true,
        routes: [
          {
            path: '/brand-management',
            name: '品牌管理',
            component: '@/pages/BrandManagement/index',
          },
        ],
      },
      // 品牌管理 end
      {
        access: 'InventoryHistoryManagement',
        path: '/inventory-history-management',
        name: '库存记录管理',
        icon: 'ShoppingCartOutlined',
        hideChildrenInMenu: true,
        routes: [
          {
            path: '/inventory-history-management',
            name: '库存记录管理',
            component: '@/pages/InventoryHistoryManagement/index',
          },
        ],
      },
      {
        access: 'TagManagement',
        path: '/tag-management',
        name: '标签管理',
        icon: 'HeartOutlined',
        hideChildrenInMenu: true,
        routes: [
          {
            path: '/tag-management',
            name: '标签管理',
            component: '@/pages/TagManagement/index',
          },
        ],
      },
      {
        access: 'InventoryHistoryManagement',
        path: '/test-page',
        name: '测试页面',
        icon: 'QuestionOutlined',
        component: '@/pages/TestPage/index',
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/markdown-editor',
    name: 'markdown编辑页',
    icon: 'BulbOutlined',
    component: '@/pages/MarkdownEditor/index',
    layout: false,
  },
  {
    component: './404',
  },
];
